<?php
/**
 * Created by PhpStorm.
 * User: shaowei
 * Date: 2019/8/27
 * Time: 下午9:23
 */

namespace App\Http\Services;

use App\Lib\rc;

class TaskMsgServices
{
    private $lib_rong;


    public function __construct()
    {
        $this->lib_rong = new rc();
    }


    /**
     * 任务完成通知
     * @param $userId
     * @param $title
     * @param $content
     * @param $act_msg
     * @param $action
     */
    public function sendTaskCompleteMsg($userId, $title = "", $content = "", $act_msg = "", $action = "")
    {
        $data = [
            'k' => 13001,
            'title' => $title,
            "content" => $content,
            "act_msg" => $act_msg,
            'action' => $action
        ];
        return $this->lib_rong->send_system_msg(11, $userId, 'kk:task_notice', $data);
    }
}